project(onnxruntime_cpu)

#windows系统动态库生成lib文件命令
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
# 生成动态库
add_library(${PROJECT_NAME} SHARED onnxruntime_cpu_model_base.cpp)


# 连接头文件
target_include_directories(${PROJECT_NAME} PUBLIC ${OpenCV_INCLUDE_DIRS} ${ONNXRUNTIME_INCLUDE_Dir})
# 连接动态库
target_link_libraries(${PROJECT_NAME} PUBLIC ${OpenCV_LIBS} ${ONNXRUNTIME_LIBS})